//
//  xmppmannger.h
//  xmppones
//
//  Created by 李立达 on 2017/2/21.
//  Copyright © 2017年 李立达. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XMPP.h"
#import "XMPPMUC.h"
#import "XMPPvCardTemp.h"
#import "XMPPReconnect.h"
#import "XMPPStreamManagement.h"
#import "XMPPRoomMemoryStorage.h"
#import "XMPPRosterMemoryStorage.h"
#import "XMPPvCardCoreDataStorage.h"
#import "XMPPStreamManagementMemoryStorage.h"
typedef void(^sucessBlock)();

@interface xmppmannger : NSObject
@property (strong,nonatomic)XMPPStream *xmppstream;
@property (nonatomic, strong)XMPPReconnect          *xmppReconnect;
@property (nonatomic, strong)XMPPStreamManagement   *xmppStreamManagement;
@property (nonatomic, strong)XMPPStreamManagementMemoryStorage  *streamStorage;
@property (nonatomic, strong)XMPPRoster *xmpproster;
@property (nonatomic, strong)XMPPRosterMemoryStorage *xmpprostermemorystorage;
@property (nonatomic, strong)XMPPJID *myJID;
@property (nonatomic, strong)XMPPPresence  *presence;
@property (nonatomic,copy)sucessBlock sucesss;
-(void)connect;
+(instancetype)shareInitOnes;
-(void)loginWithName:(NSString *)userName andPassword:(NSString *)password sucessLogin:(sucessBlock)sucess;
@end
xmppmannger* getXMPPManager();
